import request from '@/utils/request'

//  查询字典枚举信息
export function handleDict(data) {
  return request({
    url: '/api/admin/system/dict',
    method: 'post',
    params: data
  })
}
// 文件上传
export function handleUpload(url, data) {
  return request({
    url: url,
    method: 'post',
    data: data
  })
}

//  获取文件地址
export function handleFileUrl(bucket, filename) {
  return request({
    url: '/api/file/getObjectUrl',
    method: 'get',
    params: { bucket: bucket, filename: filename }
  })
}
